package com.atmc.service;

import com.atmc.bean.Code;
import com.atmc.mapper.CodeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CodeServiceImpl implements CodeService {
    @Autowired
    CodeMapper codeMapper;

    @Override
    public List<Code> selectAll() {
        return codeMapper.selectAll();
    }

    @Override
    public Code selectOne(String acco_name) {
        return codeMapper.selectOne(acco_name);
    }

    @Override
    public int deleteOne(int id) {
        return codeMapper.deleteOne(id);
    }

    @Override
    public int updateOne(Code code) {
        return codeMapper.updateOne(code);
    }

    @Override
    public int insertOne(Code code) {
        return codeMapper.insertOne(code);
    }
}
